package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品列表对象 commodity_controller
 * 
 * @author ruoyi
 * @date 2022-04-18
 */
public class CommodityController extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品编号 */
    private Long commodityId;

    /** 商品名字 */
    @Excel(name = "商品名字")
    private String commodityName;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private String commodityClassify;

    /** 商品品牌 */
    @Excel(name = "商品品牌")
    private String commodityBrand;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String commodityFlag;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commodityTime;

    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setCommodityName(String commodityName) 
    {
        this.commodityName = commodityName;
    }

    public String getCommodityName() 
    {
        return commodityName;
    }
    public void setCommodityClassify(String commodityClassify) 
    {
        this.commodityClassify = commodityClassify;
    }

    public String getCommodityClassify() 
    {
        return commodityClassify;
    }
    public void setCommodityBrand(String commodityBrand) 
    {
        this.commodityBrand = commodityBrand;
    }

    public String getCommodityBrand() 
    {
        return commodityBrand;
    }
    public void setCommodityFlag(String commodityFlag) 
    {
        this.commodityFlag = commodityFlag;
    }

    public String getCommodityFlag() 
    {
        return commodityFlag;
    }
    public void setCommodityTime(Date commodityTime) 
    {
        this.commodityTime = commodityTime;
    }

    public Date getCommodityTime() 
    {
        return commodityTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commodityId", getCommodityId())
            .append("commodityName", getCommodityName())
            .append("commodityClassify", getCommodityClassify())
            .append("commodityBrand", getCommodityBrand())
            .append("commodityFlag", getCommodityFlag())
            .append("commodityTime", getCommodityTime())
            .toString();
    }
}
